package com.imooc.imoocbilibili.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.imooc.imoocbilibili.entity.User;
import com.imooc.imoocbilibili.entity.UserInfo;

import java.util.Map;

/**
 * 用户表
 *
 * @author jl
 * @since 2022-04-10 19:51:13
 */
public interface UserService extends IService<User> {

    Page<UserInfo> queryPage(Integer pageNo, Integer pageSize, String nick);

    void addUser(User user);

    String login(User user) throws Exception;

    Map<String, Object> loginForDts(User user) throws Exception;

    void logout();

    Map<String, Object> refreshAccessTokens(String refreshToken) throws Exception;
}

